#region Copyright
/// <copyright>
/// Copyright (c) 2007 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace Osh.Teletext
{
	/// <summary>
	/// ITeletextProvider interface provides scripting access to TeletextService.
	/// </summary>
	public interface ITeletextProvider
	{
		bool NextPage(bool skipSubPages, bool skipMissingPages);
		bool PreviousPage(bool skipSubPages, bool skipMissingPages);
		bool GoToPage(int pageNumber, int subPageNumber);
		bool FollowLink(int linkIndex);
		
		int PageNumber { get; set; }
		int SubPageNumber { get; set; }

		TeletextPage CurrentPage { get; }

		event EventHandler<TeletextEventArgs> PageChange;
		event EventHandler<TeletextEventArgs> PageUpdate;
	}
}
